package com.wustl.android.hood;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.AdapterView.OnItemSelectedListener;

public class MapMain extends MapActivity{
	private MapView map;
	private MapController mc;
	
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.map);
    }
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		switch (keyCode) {
		case KeyEvent.KEYCODE_I:
			mc.zoomTo(map.getZoomLevel() + 1);
			break;
		case KeyEvent.KEYCODE_O:
			mc.zoomTo(map.getZoomLevel() - 1);
			break;
		}
		return super.onKeyDown(keyCode, event);
	}
}
